package com.bwie.common.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * @className: Lotto
 * @Description: TODO
 * @version: v1.８.0
 * @author: 刘鑫
 * @date: 2025/8/31 17:37
 */
@Data
public class Lotto {
    //抽奖id
    private Integer lottoId;
    //活动名称
    @NotBlank(message = "活动名称不能为空")
    private String actName;
    //活动时间
    @NotNull(message = "活动时间不能为空")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date actTime;
    //参与用户
    @NotNull(message = "参与用户不能为空")
    private Integer dicActorId;
    private String dicActor;

    //单次抽奖消耗积分
    @NotNull(message = "单次抽奖消耗积分不能为空")
    private Integer consumePoints;
    //活动背景
    @NotBlank(message = "活动背景不能为空")
    private String actImg;
    //中奖名单
    @NotBlank(message = "中奖名单不能为空")
    private String dicWinningList;

    //中奖记录
    @NotBlank(message = "中奖记录不能为空")
    private String dicWinningLog;
    //活动规则
    @NotBlank(message = "活动规则不能为空")
    private String dicActRule;
    private Integer status;

    /**
     * 分页
     */
    private Integer pageNum=1;
    private Integer pageSize=10;

}
